package com.by.mapper;

import com.by.bean.Products;
import com.by.common.crud.BaseMapper;
import com.by.query.ProductQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author Hzy
 * @version 1.0
 * @date 2025/2/18  20:07
 * @description
 * @since jdk11
 */
@Mapper
public interface ProductMapper extends BaseMapper<Products> {
    /**
     * 查询产品列表
     * @param query
     * @return
     */
    List<Map> queryByMap(ProductQuery query);
    /**
     * 根据id查询产品
     */
    Products get(String id);
}
